package com.nd.qa.shareplate.service;

import java.util.HashMap;

import com.nd.qa.shareplate.model.User;

public interface UserService {

	/**
	 * 注册
	 * @return
	 * @throws Exception
	 */
	public HashMap<String,Object> registerUser(User user) throws Exception;
	/**
	 * 查询用户信息
	 * @param userName
	 * @return
	 * @throws Exception
	 */
	public User queryByUserName(String userName) throws Exception;
	/**
	 * 查询用户信息
	 * @param userName
	 * @return
	 * @throws Exception
	 */
	public User queryByUserById(String userId) throws Exception;
	/**
	 * 修改用户信息
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public void updateUser(User user) throws Exception;
}
